let os = require('os');
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')

module.exports = {
  // publicPath:'/',
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'scss',
      patterns: []
    }
  },
  devServer: {
    proxy: {
      '/api': {
        target: 'http://127.0.0.1:9999',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      },
    }
  },
  configureWebpack: {
    plugins: [new NodePolyfillPlugin()]
  }
}
